<?php
include "../lib/DAL/HoiDongThi.php";
class HoiDongThiBLL {
    function __construct(){
        
    }
    
    function __destruct(){
        
    }
	function setHoiDongBLL($row){
        $hoidong= new HoiDongThi();
        $hoidong->setHoiDong($row['ma_hoidong'],$row['ma_trungtam'],$row['ma_donvihocvu']);
        return $hoidong;
         
    }
	
	public function getHoiDong_indirect($donvi, $hocvu){
        $sql = "select * from tbl_hoidongthi where ma_trungtam ='".$donvi."' AND ma_donvihocvu = '".$hocvu."'";        
        $row = mysql_fetch_array(mysql_query($sql));
       return $this->setHoiDongBLL($row);
        
    }
}
?>